package com.zm.damai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 大麦商城-用户表-4
 * </p>
 *
 * @author lpt
 * @since 2024-09-08
 */
@Getter
@Setter
@TableName("dm_user")
public class DmUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 英文名(账号)
     */
    @TableField("ename")
    private String ename;

    /**
     * 中文名(昵称)
     */
    @TableField("cname")
    private String cname;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 性别
     */
    @TableField("sex")
    private String sex;

    /**
     * 状态: 1正常, 0注销
     */
    @TableField("state")
    private Integer state;

    /**
     * 注册时间
     */
    @TableField("createtime")
    private LocalDateTime createtime;


}
